home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / tcl / Makefile.orig < prev    next >
Encoding:
Makefile  |  1991-10-10  |  1.6 KB  |  53 lines

  1. #
  2. # This Makefile is for use when distributing Tcl to the outside world.
  3. # It is normally set up by running the "config" script.  Before modifying
  4. # this file by hand, you should read through the "config" script to see
  5. # what it does.
  6. #
  7. # Some changes you may wish to make here:
  8. #
  9. # 1. To compile for non-UNIX systems (so that only the non-UNIX-specific
  10. # commands are available), change the OBJS line below so it doesn't
  11. # include ${UNIX_OBJS}.  Also, add the switch "-DTCL_GENERIC_ONLY" to
  12. # CFLAGS.  Lastly, you'll have to provide your own replacement for the
  13. # "panic" procedure (see panic.c for what the current one does).
  14. #
  15. # 2. ANSI-C procedure prototypes are turned on by default if supported
  16. # by the compiler.  To turn them off, add "-DNO_PROTOTYPE" to CFLAGS
  17. # below.
  18. #
  19. # 3. If you've put the Tcl script library in a non-standard place, change
  20. # the definition of TCL_LIBRARY to correspond to its location on your
  21. # system.
  22. #
  23.  
  24. TCL_LIBRARY =    /usr/local/lib/tcl
  25.  
  26. CFLAGS = -g -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\"
  27.  
  28. GENERIC_OBJS = regexp.o tclAssem.o tclBasic.o tclCkalloc.o \
  29.     tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclExpr.o tclGet.o \
  30.     tclHash.o tclHistory.o tclParse.o tclProc.o tclUtil.o \
  31.     tclVar.o
  32.  
  33. UNIX_OBJS = panic.o tclEnv.o tclGlob.o tclUnixAZ.o tclUnixStr.o \
  34.     tclUnixUtil.o 
  35.  
  36. COMPAT_OBJS =
  37.  
  38. OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS}
  39.  
  40. libtcl.a: ${OBJS}
  41.     rm -f libtcl.a
  42.     ar cr libtcl.a ${OBJS}
  43.     ranlib libtcl.a
  44.  
  45. tclTest: tclTest.o libtcl.a
  46.     cc tclTest.o libtcl.a -o tclTest
  47.  
  48. clean:
  49.     rm -f ${OBJS} libtcl.a tclTest.o tclTest
  50.  
  51. ${OBJS}: tcl.h tclHash.h tclInt.h
  52. ${UNIX_OBJS}: tclUnix.h
  53.